package me.cxlr.qinlauncher2.util;

import android.app.Activity;

import me.cxlr.qinlauncher2.R;

/**
 * @author 酷安用户:山轮纸
 */
public class ResourceUtil {

    public static String getString(Activity activity, String res){
        String str = "";
        switch (res){
            case "action_label_no":
                str = activity.getResources().getString(R.string.action_label_no);
                break;
            case "action_label_short_line":
                str = activity.getResources().getString(R.string.action_label_short_line);
                break;
            case "action_label_app_drawer":
                str = activity.getResources().getString(R.string.action_label_app_drawer);
                break;
            case "action_label_volume":
                str = activity.getResources().getString(R.string.action_label_volume);
                break;
            case "action_label_flashlight":
                str = activity.getResources().getString(R.string.action_label_flashlight);
                break;
            case "action_label_launcher_settings":
                str = activity.getResources().getString(R.string.action_label_launcher_settings);
                break;
            case "action_label_open_notification":
                str = activity.getResources().getString(R.string.action_label_open_notification);
                break;
            default:
                break;
        }
        return str;
    }

}
